﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 三坐标检测项
    /// </summary>
    [Table(Name = "cks_cmm_inspection_item")]
    [SugarTable("cks_cmm_inspection_item")]
    public class CksCMMInspectionItem : BaseEntity
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 批次
        /// </summary>
        public string BatchCode { get; set; }

        /// <summary>
        /// 检测项名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 标准值
        /// </summary>
        public double StandardValue { get; set; }

        public string Idsymbol { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 上限值
        /// </summary>
        public double USL { get; set; }

        /// <summary>
        /// 下线值
        /// </summary>
        public double LSL { get; set; }

        /// <summary>
        /// 测量值
        /// </summary>
        [JsonPropertyName(" ActualValue ")] // System.Text.Json的属性名映射
        public double ActualValue { get; set; }

        /// <summary>
        /// 检测结果 OK：合格 NG:不合格
        /// </summary>
        public string CheckResult { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}